﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace DataModel
{
    [Serializable]
    [DataContract]
    [JsonObject(MemberSerialization.OptIn)]
    public class PlayList
    {
        [DataMember(IsRequired = true)]
        [JsonProperty(PropertyName = "wallpapaers")]
        public string[] Wallpapaers { get; set; } = [];
    }

    public class UrlIndex
    {
        [DataMember(IsRequired = true)]
        [JsonProperty(PropertyName = "wallpapaers")]
        public string[] Wallpapers { get; set; } = [];

        [DataMember(IsRequired = true)]
        [JsonProperty(PropertyName = "playList")]
        public PlayList[] PlayList { get; set; } = [];
    }
}
